<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
	<title></title>
	<meta charset="utf-8">
	<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<link rel="stylesheet" href="css/ui-input.css">
	<link rel="stylesheet" href="css/ui-btn.css">
	<link rel="stylesheet" href="css/ui-base.css">
	<link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/ui-color.css">
	<link rel="stylesheet" href="css/ui-res.css">
	<link rel="stylesheet" href="css/style.css">
	<script src="js/zy_control.js"></script>
	<script src="js/zy_click.js"></script>
	<script src="js/dis_control.js"></script>
	<script src="js/config.js"></script>
	<script src="js/zy_json.js"></script>
	<script>
	</script>
</head>
<body class="um-vp c-gra5" ontouchstart>
    <div id="page_0" class="up ub ub-ver" tabindex="0">
        <!--header开始-->
        <div id="header" class="uh">
        	<div class="umh015"></div>
        	<div class="c-blu3 c-m2 t-wh uc-a uba us b-gra uinn6">
				 <a class="btn btn-l btn-a ub ub-ac" ontouchstart="zy_touch('btn-act1')" onclick="closewin();if(tmid){clearTimeout(tmid);}">       
		              <div class="ulim">返回</div>   
		         </a>
            	<h1 class="ut ulev0 ut-s tx-c" id="ttl">&nbsp;</h1>
			</div>
        </div>
        <!--header结束--><!--content开始-->
        <div id="content" class="ub-f1 tx-l t-bla">
            
        </div>
        <!--content结束-->
		
		<!--footer开始-->
		<div id="footer" class="uh msg-fbg" style="padding:.4em 0;" onclick="sendMsgaaa();">
        	<!--<img src="images/facebtn.png" class="facebtn" />-->
        	<div class="t-bla ub uba uc-a2 b-gra c-wh us-i uinput ub-rev uinn4" style="margin:0 3.5em 0 .3em;">
				<div class="ub-f1 uinn1" style="height:1.6em; padding:.2em; line-height:1.6em;">
			   		<span class="t-gra">请输入内容</span>
				</div>
			</div>
			<div class="btn btn-r btn-n ub ub-ac" style="margin-top:.2em;">       
	        	<div class="ulim t-wh">发送</div>             
	        </div> 
        </div>
        <!--footer结束-->
    </div>
</body>
<script>
zy_init();
var params = getStorJson('params');
var touid = params.touid;
setHtml('ttl', params.tousername);
window.uexOnload = function(type){
    if (!type) {
		var off1 = $$("header").offsetHeight;
		var off2 = $$("content").offsetHeight + off1;
        zy_con("content", "msg_detail_content.html", 0, off1);
		
		//zy_con("footer", "pop_edit.html", 0, off2);
    }
	window.onorientationchange=window.onresize=function()
	{
		zy_resize("content",0,$$("header").offsetHeight);				
	}
}

function addmsg(){
	var str = '{"type":"msg", "wname":"msg_detail", "touid":"'+touid+'"}';
	setstorage('params',str);
	openwin('editor', 'editor.html', '12');
}

function sendMsgaaa(){
	uexControl.cbInputCompleted = InputDlCb;
	uexControl.openInputDialog('0','','发送');
}

function InputDlCb(opId,dataType,data){
	if(data){
		var msg = encodeURIComponent(data);
		var url = home_url + "&mod=spacecp&ac=pm&op=send&touid="+touid+"&pmsubmit=ture&message="+msg;
		uexWindow.toast('1', '5', "正在发送...", "");
		logs('InputDlCb-->msg='+msg);
		$.getJSON(url, submitCb, 'json', getJsonErr, 'POST', '', '');
	}
}

var tmid = '';
function submitCb(json){
	logs('msg-->submitCb-->json='+JSON.stringify(json));
	var str = '发表失败';
	if (json) {
		if (json.status == '1'){
			str = '发表成功';
			tmid = setTimeout("myTimerCb();", 1000);
		}
		else if(json.message) str = json.message;
	}
	uexWindow.toast('0', '5', str, 1500);
}
function myTimerCb(){
	tmid = '';
	ueppscript('msg_detail', 'content', 'update5();');
}
</script>
</html>
